package com.randy.fundation;

public class XmlMFUtitls {
    public static String validate(String xmlFilePath, String xmlSchemaFilePath) {
        return "";
        // Try the validation, we assume that if there are any issues with the validation
        // process that the input is invalid.
//        try {
//
//            // SchemaFactory factory = new XMLSchemaFactory();
//            // Schema esquema = factory.newSchema( );
//
//            SchemaFactory factory    = new XMLSchemaFactory();
//            Source        schemaFile = new StreamSource(new File(xmlSchemaFilePath));
//            Source        xmlSource  = new StreamSource(new File(xmlFilePath));
//            Schema        schema     = factory.newSchema(schemaFile);
//            Validator     validator  = schema.newValidator();
//            validator.validate(xmlSource);
//
//            return "";
//        } catch (Exception e) {
//            // Catches everything beyond: SAXException, and IOException.
//            e.printStackTrace();
//            return e.getMessage();
//        }
    }
}
